package model;

public class AlertParameters {
	private String url;
	private String drvName;
	private String userName;// 用户名;   
	private String phone;// 用户电话;
	private String email;
	private String userPwd;//密码
	private String dbName;  //没用？
	private String table;
	private String field;
	private String condition;
	private int interval;//轮询间隔
	private int timeSpan;//查询时长
	private String threshold;//阈值
	private String querycontent;
	private String customTime;
	private String location;
	private String locationValue;
	
	public AlertParameters(){};
	
	public AlertParameters(String url, String drvName, String userName,
			String phone, String userPwd, String dbName, String table,
			String field, String condition, int interval, int timeSpan,
			String threshold, String querycontent, String createTime,
			String location, String locationValue) {
		this.url = url;
		this.drvName = drvName;
		this.userName = userName;
		this.phone = phone;
		this.userPwd = userPwd;
		this.dbName = dbName;
		this.table = table;
		this.field = field;
		this.condition = condition;
		this.interval = interval;
		this.timeSpan = timeSpan;
		this.threshold = threshold;
		this.querycontent = querycontent;
		this.customTime = createTime;
		this.location = location;
		this.locationValue = locationValue;
	}
	
	public AlertParameters(String url, String drvName, String userName, String phone, String email, String userPwd,
			String dbName, String table, String field, String condition, int interval, int timeSpan, String threshold,
			String querycontent, String createTime, String location, String locationValue) {
		this.url = url;
		this.drvName = drvName;
		this.userName = userName;
		this.phone = phone;
		this.email = email;
		this.userPwd = userPwd;
		this.dbName = dbName;
		this.table = table;
		this.field = field;
		this.condition = condition;
		this.interval = interval;
		this.timeSpan = timeSpan;
		this.threshold = threshold;
		this.querycontent = querycontent;
		this.customTime = createTime;
		this.location = location;
		this.locationValue = locationValue;
	}

	public String getLocationValue() {
		return locationValue;
	}
	public void setLocationValue(String locationValue) {
		this.locationValue = locationValue;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getCustomTime() {
		return customTime;
	}
	public void setCustomTime(String createTime) {
		this.customTime = createTime;
	}
	public String getQuerycontent() {
		return querycontent;
	}
	public void setQuerycontent(String querycontent) {
		this.querycontent = querycontent;
	}
	public String getDbName() {
		return dbName;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPwd() {
		return userPwd;
	}
	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getDrvName() {
		return drvName;
	}
	public void setDrvName(String drvName) {
		this.drvName = drvName;
	}
	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	public String getCondition() {
		return condition;
	}
	public void setCondition(String condition) {
		this.condition = condition;
	}
	public int getInterval() {
		return interval;
	}
	public void setInterval(int interval) {
		this.interval = interval;
	}
	public int getTimeSpan() {
		return timeSpan;
	}
	public void setTimeSpan(int timeSpan) {
		this.timeSpan = timeSpan;
	}
	public String getThreshold() {
		return threshold;
	}
	public void setThreshold(String threshold) {
		this.threshold = threshold;
	}
	
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	@Override
	public String toString() {
		return "AlertParameters [url=" + url + ", drvName=" + drvName + ", userName=" + userName + ", phone=" + phone
				+ ", email=" + email + ", userPwd=" + userPwd + ", dbName=" + dbName + ", table=" + table + ", field="
				+ field + ", condition=" + condition + ", interval=" + interval + ", timeSpan=" + timeSpan
				+ ", threshold=" + threshold + ", querycontent=" + querycontent + ", createTime=" + customTime
				+ ", location=" + location + ", locationValue=" + locationValue + "]";
	}
	
}
